package _220323;

import java.util.Scanner;

/**
 * @author ShadowLim
 * @create 2022-03-23-11:29
 */
public class 优秀的拆分 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        scanner.close();
        if (n % 2 != 0) {
            System.out.println(-1);
            return;
        }
        String bin = Integer.toBinaryString(n);
        for (int i = 0; i < bin.length() - 1; i++) {
            if (bin.charAt(i) == '1') {
//                System.out.print(Math.pow(2, bin.length() - i - 1) + " ");  // 10
                                                                            // 8.0 2.0
                System.out.print((int)Math.pow(2.00, bin.length() - i - 1) + " ");
            }
        }
    }
}
